# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo104
# Description:
# Author:       $赵怡蕾
# Date:         2019/3/27
#-------------------------------------------------------------------------------

class Myclass:
    name = 'Yzl'   # 静态属性

    def __init__(self):
        self.value = 45   # 实例属性

    @staticmethod
    def run():
        print('*',Myclass.name, '*')
        print('Myclass的静态方法run被调用')

    @classmethod
    def do(cls):   # 习惯性   cls
        print(cls)
        print('[',cls.name ,']')
        cls.run()
        # print(cls.value)
        print('成员方法 do 被调用')

    def do1(self):   # 实例方法
        print(self.value)
        print('<',self.name,'>')
        print(self)

# 静态方法，直接通过类名调用
Myclass.run()
Myclass.do()
